package arraySign;

public class Solution {
    public int arraySign(int[] nums) {
        int fuhao=1;
        for (int i = 0; i < nums.length; i++) {
            if(nums[i]<0){
                fuhao*=-1;
            }else if(nums[i]==0){
                return 0;
            }
        }
        return fuhao;
    }
}
